class ChangeWorkCategoryToTicketTemplateEverywere < ActiveRecord::Migration
  def self.up
    rename_column :note_types, :work_category_id, :ticket_template_id
    rename_column :requests, :work_category_id, :ticket_template_id
    rename_column :report_templates, :work_category_id, :ticket_template_id
    rename_table :work_categories, :ticket_templates
  end

  def self.down
    rename_column :note_types, :ticket_template_id, :work_category_id
    rename_column :requests, :ticket_template_id, :work_category_id
    rename_column :report_templates, :ticket_template_id, :work_category_id
    rename_table :ticket_templates, :work_categories
  end
end
